package com.hmdp.utils;

import java.util.Random;

public class RandomUtil {
    //生成六位随机数
    public static String create(){
    Random random = new Random();
    StringBuilder sb = new StringBuilder();
        for(int i = 0; i < 6; i++) {
        sb.append(random.nextInt(10));
    }
    String randomNumber = sb.toString();
        return randomNumber;}
}
